package com.qcby.admin.service;

import com.qcby.admin.model.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 菜单权限表 服务类
 * </p>
 *
 * @author admin
 * @since 2024-09-19
 */
public interface SysMenuService extends IService<SysMenu> {

    List<String> selectPermsByUserId(Long id);

    List<SysMenu> selectRouterMenuTreeByUserId(Long userId);

    List<SysMenu> selectMenuList(SysMenu menu);
    boolean hasChild(Long menuId);

    List<Long> selectMenuListByRoleId(Long roleId);

    HashMap<String, Object> buildRoleMenuTree(Long roleId);
}
